package superminer.xinfang.com.ipreport.network;

import android.util.Log;

import java.util.HashMap;
import java.util.Map;

import superminer.xinfang.com.ipreport.util.MyGson;

/**
 * Created by Administrator on 2019/3/7.
 */

public class NetHelper {
    public static final String URL = "";//IP地址

    public static final String GetVersionInfo = "http://www.btcc.ren/Handler/PhoneVersion.ashx";//版本号

    /**
     * 获得版本号
     * @param callback
     */
    public static void GetVersionInfo(HttpUtils.HttpCallback callback) {
        Map<String, String> map = new HashMap<>();
        String json = MyGson.getInstance().toJson(map);
        Log.i("Json",json);
        new HttpUtils().postJsonNOToken(URL + GetVersionInfo, json, callback);
    }
}
